import 'package:json_annotation/json_annotation.dart';
import 'package:megatron/bean/Content.dart';

@JsonSerializable()
class MonthListBean {
  List<Content> content;
  String month;

  MonthListBean({this.content, this.month});

  MonthListBean.fromJson(Map<String, dynamic> json) {
    if (json['content'] != null) {
      content = new List<Content>();
      json['content'].forEach((v) {
        content.add(new Content.fromJson(v));
      });
    }
    month = json['month'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.content != null) {
      data['content'] = this.content.map((v) => v.toJson()).toList();
    }
    data['month'] = this.month;
    return data;
  }
}
